import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import muser from "../components/muser";
import tables from "../components/tables";
import content from "../components/content";
import pageone from "../components/pageone";
import pagetwo from "../components/pagetwo";
import pagethree from "../components/pagethree";
import pagefour from "../components/pagefour";
import App from "../App";

Vue.use(Router)

export default new Router({
  routes: [
 {
      path:"/",
      name: "导航1",
      component: content,
      children:
        [{
          path:"/pageone",
          name: "页面1-one",
          component: pageone
        },{
          path:"/pagetwo",
          name: "页面2-two",
          component: pagetwo
    }]
    },{
      path:"/",
      name: "导航2",
      component: content,
      children:
        [{
          path:"/pagethree",
          name: "页面3",
          component: pagethree
        },{
          path:"/pagefour",
          name: "页面4",
          component: pagefour
        }]
    }
  ]
})
